package gen

import (
	"gitee.com/knowgo/gpa-examples/commands"
	"gitee.com/knowgo/gpa-examples/examples/utils"
)

var Cmd = &commands.Command{
	Cmd:         "gen",
	Describtion: "生成数据库操作代码",
	EnterPoint: func(appName string, args []string) {
		g := utils.GetGenerator()
		err := g.Generate("gitee.com/knowgo/gpa-examples/db/repos", true)
		if err != nil {
			panic(err)
		}
	},
}
